package com.skyform.core.entity;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.loa.service.LoaService;
/*****************************************************************************
 * @content: 类信息                                                                                                                                *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2014-01-08 13:28:27                                            *
 * @modDate: 2014-01-08 13:28:27                                            *
 * @version: 1.00                                                           *
 ****************************************************************************/

@Controller
@RequestMapping("/发布路径")
public class SkyHelpProblemController extends StrutsTwoAction {
    private LoaService loaService; // 
    private SkyHelpProblemVo vo; // 





    @Override
	public String execute() throws Exception {
        super.printInfo("", "===== this action begin");
        if (vo.getSkyHelpProblemId() == null) {
            loaService.addSkyHelpProblem(vo);
        } else {
            loaService.modifySkyHelpProblem(vo);
        }
        setResContent("{success: true, info: ''}");
        return null;
        super.printInfo("", "===== this action end");

    }

    public LoaService getLoaService() {
        return loaService;

    }

    public void setLoaService(LoaService loaService) {
        this.loaService = loaService;

    }

    public SkyHelpProblemVo getVo() {
        return vo;

    }

    public void setVo(SkyHelpProblemVo vo) {
        this.vo = vo;

    }

}
